<?php 

// /*是否为手机端*/
$ua = strtolower($_SERVER['HTTP_USER_AGENT']);
$uachar = "/(nokia|sony|ericsson|mot|samsung|sgh|lg|philips|panasonic|alcatel|lenovo|cldc|midp|mobile)/i";
if((preg_match($uachar, $ua) || $_SERVER['HTTP_HOST'] == 'm.eggms.com') && !strpos(strtolower($_SERVER['REQUEST_URI']),'wap'))
{
    $isMobile = true;
}


if (!empty($isMobile)) {


?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta name="Generator" content="ALORK 20150428.14" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
    <title>鸡蛋美术商城-美术用品专卖店-正品专卖</title>
    <style type="text/css" media="screen">
        body{max-width: 640px;margin: 0 auto; padding: 0;}
        .error-img{width: 2.8rem;height: auto;display: block;margin: 0 auto;margin-top: 0.2rem;}
        .error-index{width: 1.5rem;height: 0.3rem;line-height: 0.3rem;display: block;margin: 0 auto;color: #333333;background: #fff;text-align: center;border: 2px solid #8f8f8f;border-radius: 0.15rem;text-decoration: none;font-size: 0.13rem}
    </style>
    <script type="text/javascript" src="http://public.eggms.com/js/jquery.js"></script>
</head>
<body>
    <img src="http://public.eggms.com/img/error_page/goods.m.jpg" alt="鸡蛋美术-错误信息" class="error-img"/>
    <a href="/index.php" class="error-index">返回商城首页</a>
<script type="text/javascript">
    /*字体大小 自适应 rem单位*/
    function auto(){
        var width = $('body').width();
        var font_size = 20*(width/320);
        var font_size2 = (width/320)*625+'%';
        $('body').css('font-size',font_size);
        $('html').css('font-size',font_size2);
    }
        auto();
    /*浏览器横屏坚屏改变时也运行函数*/
    window.onorientationchange = function() {
        auto();
    };
    /* 浏览器窗口发生改变也运行函数*/
    window.resize=function(){
        auto();
    };
</script>

</body>
</html>


<?



} else {

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta property="wb:webmaster" content="3a8fecf42d5cb1bd">
    <meta property="qc:admins" content="271532754446577536375">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="Keywords" content="鸡蛋美术,鸡蛋,美术用品,正品专卖,美术,画材,画笔,画架,画袋,颜料,美术商城">
    <meta name="Description" content="鸡蛋美术商城-美术用品专卖店-正品专卖">
    <title>鸡蛋美术商城-美术用品专卖店-正品专卖</title>
    <link rel="stylesheet" href="http://public.eggms.com/css/my_style.css">
    <link rel="stylesheet" href="http://public.eggms.com/css/common.css">
    <script type="text/javascript" src="http://public.eggms.com/js/jquery.js"></script>
    <base target="_blank">
    <style type="text/css" media="screen">
        .error-img{width: auto;height: auto;display: block;margin: 0 auto;}
        .error-index{width: 150px;height: 35px;line-height: 35px;display: block;margin: 0 auto;color: #fff;background: #8b0409;text-align: center;}
    </style>
</head><body>
<div id="header">
    <div class="top_1">
        <div class="body1">
            <!-- 收藏网址JS -->
            <script type="text/javascript">
                function addBookmark(){
                    var title="鸡蛋美术商城-美术用品专卖店-正品专卖";
                    var url="http://eggms.com/";
                    if(window.sidebar){
                        try{
                            window.sidebar.addPanel(title,url,'');
                        }catch(e){
                            alert("您的浏览器不支持该功能,请使用Ctrl+D收藏本页");
                        }
                    }else{
                        try{
                            window.external.AddFavorite(url,title);
                        }catch(e){
                            alert("您的浏览器不支持该功能,请使用Ctrl+D收藏本页");
                        }
                    }
                }
            </script>
            <div class="top_1_l">唧！欢迎来到中国最大画材商城~</div>
            <div class="top_1_r">
                <a href="javascript:addBookmark();" target="_self">收藏鸡蛋美术</a>
                <a href="user.php?act=order_list">我的订单</a>
                <span class="top_1_q">
                    <a class="order3" target="_blank" href="http://wpa.b.qq.com/cgi/wpa.php?ln=2&amp;uin=800099584" title="需启动您的QQ">在线客服<span class="speak"></span></a>
                    <div class="top_1_q_box none">
                        <a class="shouqian" href="http://wpa.b.qq.com/cgi/wpa.php?ln=2&amp;uin=800099584">售前客服</a>
                        <a class="shouhou" href="http://wpa.b.qq.com/cgi/wpa.php?ln=2&amp;uin=800099584">售后客服</a>
                    </div>
                </span>
                <span class="top_1_cart">
                    <a class="order4" href="flow.php" target="_blank">购物车
                        <span class="lanzi"></span>
                    </a>
                </span>
                <span class="vertical">|</span>
                <span class="top_1_a">
                    <a class="order5" href="app_introduction.php">APP<span class="arrow"></span></a>
                    <div class="top_1_app_box none">
                        <a href="http://shouji.360tpcdn.com/141102/09f2bc0937b7477c46f7d6e0e539cdb9/com.eggms.appandroid_2.apk">一键拥有</a>
                    </div>
                </span>
            </div>
        </div>
    </div>
    <div class="top_2">
        <div class="body2">
            <div class="top_2_left2">
                <a href="/" target="_self"><img src="/themes/default/pic/header_logo.jpg" alt="鸡蛋美术商城" height="65px;"></a>
            </div>
            <div class="top_2_center">
                <form action="search.php" onsubmit="return checkSearchForm()" id="soso_form">
                    <input type="text" id="keywords" name="keywords" value="" placeholder="丙粉，色彩革命" autocomplete="off">
                    <input name="imageField" type="submit" value="" class="button" style="cursor:pointer;">
                </form>
                <a href="search.php?keywords=三菱">三菱</a>
                <a href="search.php?keywords=油画笔">油画笔</a>
                <a href="category-216-b0.html">头像照片</a>
            </div>
            <div class="top_2_right">
                <a class="top_menu_some0"></a>
                <span class="sprit">/</span>
                <a href="genuine.php#003" class="top_menu_some2"></a>
                <span class="sprit">/</span>
                <a href="genuine.php#002" class="top_menu_some3"></a>
            </div>
        </div>
    </div>
    <div class="line"></div>
</div>

    <img src="http://public.eggms.com/img/error_page/goods.jpg" alt="鸡蛋美术-错误信息" class="error-img"/>
    <a href="/index.php" class="error-index">返回商城首页</a>
<script type="text/javascript">
    $(function(){
        var h = ($(window).height() - 455)/2;
        if (h > 0) {
            $('.error-img').css('margin-top', h+'px');
        }
    });
</script>

</body>
</html>

<?
}
?>